package com.topgay.domain;



import java.io.Serializable;



public class Member implements Serializable {



private String id;	//아이디

private String password;	//비밀번호

private String nickname ;        //닉네임 

private String name;              //이름

private String gender;            //성별  - m:남 / f:여


private String birth;	//생년월일

private String hp;	//핸드폰번호

private String email;	//이메일

private String city;	//시/도

private String town;	//구/군


private String selfIntroduction; //자기소개

private String joinDate;	//가입일

private int loginCheck;	//로그인여부 0:비로그인	1:로그인 상태

private String role;	//권한  - user:회원 / admin:관리자


public Member() {

super();

}



public Member(String id, String password, String nickname, String name,

String gender, String birth, String hp, String email, String city,

String town, String selfIntroduction, String joinDate,

int loginCheck, String role) {

super();

this.id = id;

this.password = password;

this.nickname = nickname;

this.name = name;

this.gender = gender;

this.birth = birth;

this.hp = hp;

this.email = email;

this.city = city;

this.town = town;

this.selfIntroduction = selfIntroduction;

this.joinDate = joinDate;

this.loginCheck = loginCheck;

this.role = role;

}



public String getId() {

return id;

}



public void setId(String id) {

this.id = id;

}



public String getPassword() {

return password;

}



public void setPassword(String password) {

this.password = password;

}



public String getNickname() {

return nickname;

}



public void setNickname(String nickname) {

this.nickname = nickname;

}



public String getName() {

return name;

}



public void setName(String name) {

this.name = name;

}



public String getGender() {

return gender;

}



public void setGender(String gender) {

this.gender = gender;

}



public String getBirth() {

return birth;

}



public void setBirth(String birth) {

this.birth = birth;

}



public String getHp() {

return hp;

}



public void setHp(String hp) {

this.hp = hp;

}



public String getEmail() {

return email;

}



public void setEmail(String email) {

this.email = email;

}



public String getCity() {

return city;

}



public void setCity(String city) {

this.city = city;

}



public String getTown() {

return town;

}



public void setTown(String town) {

this.town = town;

}



public String getSelfIntroduction() {

return selfIntroduction;

}



public void setSelfIntroduction(String selfIntroduction) {

this.selfIntroduction = selfIntroduction;

}



public String getJoinDate() {

return joinDate;

}



public void setJoinDate(String joinDate) {

this.joinDate = joinDate;

}



public int getLoginCheck() {

return loginCheck;

}



public void setLoginCheck(int loginCheck) {

this.loginCheck = loginCheck;

}



public String getRole() {

return role;

}



public void setRole(String role) {

this.role = role;

}



@Override

public int hashCode() {

final int prime = 31;

int result = 1;

result = prime * result + ((birth == null) ? 0 : birth.hashCode());

result = prime * result + ((city == null) ? 0 : city.hashCode());

result = prime * result + ((email == null) ? 0 : email.hashCode());

result = prime * result + ((gender == null) ? 0 : gender.hashCode());

result = prime * result + ((hp == null) ? 0 : hp.hashCode());

result = prime * result + ((id == null) ? 0 : id.hashCode());

result = prime * result

+ ((joinDate == null) ? 0 : joinDate.hashCode());

result = prime * result + loginCheck;

result = prime * result + ((name == null) ? 0 : name.hashCode());

result = prime * result

+ ((nickname == null) ? 0 : nickname.hashCode());

result = prime * result

+ ((password == null) ? 0 : password.hashCode());

result = prime * result + ((role == null) ? 0 : role.hashCode());

result = prime

* result

+ ((selfIntroduction == null) ? 0 : selfIntroduction.hashCode());

result = prime * result + ((town == null) ? 0 : town.hashCode());

return result;

}



@Override

public boolean equals(Object obj) {

if (this == obj)

return true;

if (obj == null)

return false;

if (getClass() != obj.getClass())

return false;

Member other = (Member) obj;

if (birth == null) {

if (other.birth != null)

return false;

} else if (!birth.equals(other.birth))

return false;

if (city == null) {

if (other.city != null)

return false;

} else if (!city.equals(other.city))

return false;

if (email == null) {

if (other.email != null)

return false;

} else if (!email.equals(other.email))

return false;

if (gender == null) {

if (other.gender != null)

return false;

} else if (!gender.equals(other.gender))

return false;

if (hp == null) {

if (other.hp != null)

return false;

} else if (!hp.equals(other.hp))

return false;

if (id == null) {

if (other.id != null)

return false;

} else if (!id.equals(other.id))

return false;

if (joinDate == null) {

if (other.joinDate != null)

return false;

} else if (!joinDate.equals(other.joinDate))

return false;

if (loginCheck != other.loginCheck)

return false;

if (name == null) {

if (other.name != null)

return false;

} else if (!name.equals(other.name))

return false;

if (nickname == null) {

if (other.nickname != null)

return false;

} else if (!nickname.equals(other.nickname))

return false;

if (password == null) {

if (other.password != null)

return false;

} else if (!password.equals(other.password))

return false;

if (role == null) {

if (other.role != null)

return false;

} else if (!role.equals(other.role))

return false;

if (selfIntroduction == null) {

if (other.selfIntroduction != null)

return false;

} else if (!selfIntroduction.equals(other.selfIntroduction))

return false;

if (town == null) {

if (other.town != null)

return false;

} else if (!town.equals(other.town))

return false;

return true;

}



@Override

public String toString() {

return "Member [id=" + id + ", password=" + password + ", nickname="

+ nickname + ", name=" + name + ", gender=" + gender

+ ", birth=" + birth + ", hp=" + hp + ", email=" + email

+ ", city=" + city + ", town=" + town + ", selfIntroduction="

+ selfIntroduction + ", joinDate=" + joinDate + ", loginCheck="

+ loginCheck + ", role=" + role + "]";

}




}